package com.ftg.learn.repository;

import com.ftg.learn.entity.SysRoleEntity;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;
import java.util.Optional;

public interface EsNewsRepository extends ElasticsearchRepository<SysRoleEntity, Long> {
    Optional<SysRoleEntity> findById(Long id);
    List<SysRoleEntity> findByRoleName(String roleName);
}
